package com.z.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author zz
 * @since 2021-08-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class AuRights implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @TableId(value = "right_id", type = IdType.AUTO)
    private Integer rightId;

    /**
     * 权限名
     */
    private String rightName;

    /**
     * 权限描述
     */
    private String rightDesc;

    /**
     * 权限父id
     */
    private Integer rightPid;

    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    /**
     * 1为删除，0为不删除
     */
    @TableLogic
    private Integer isDeleted;


}
